package com.shellyan.gmall.rt.util

import redis.clients.jedis.Jedis

/**
 * @author Shelly An
 * @create 2020/9/4 10:18
 */
object RedisUtil {
  val host = ConfigUtil.getConf("redis.server")
  val port = ConfigUtil.getConf("redis.port").toInt
    //只获取客户端
  def getClient = {
    new Jedis(host,port)
  }
}
